package com.ripplezjw.blog.mapper;

import com.ripplezjw.blog.po.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface ArticleMapper {
    int insertArticle(Article article);

    List<Article> findArticle();

    int delArticleByArticleId(int ArticleId);

    Article findArticleByArticleId(int articleId);

    int updateArticleByArticleId(Article article);

    List<Article> findArticleByTime(String time);

    List<Date> findCreateTime();

    List<Date> findModTime();

    List<Article> findArticleByModTime(String time);
}
